<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "general";
$route['404_override'] = '';

$route['gioi-thieu'] = "general/specAllContent/2";
$route['live-concert'] = "general/getAllContent/3";
$route['live-concert/view/(:any)'] = "general/getContentId/$1";
$route['cuoc-thi'] = "general/getAllContent/4";
$route['cuoc-thi/(:num)'] = "general/getAllContent/4/$1";
$route['cuoc-thi/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc'] = "general/getAllContentNews/5";
$route['tin-tuc/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc/(:num)'] = "general/getAllContentNews/5/$1";
$route['albums'] = "general/getAllContent/6";
$route['albums/view/(:any)'] = "general/getContentId/$1";
$route['hinh-anh'] = "general/gethinhanh";
$route['hinh-anh/(:num)'] = "general/gethinhanh/$1";
$route['hinh-anh/catalog/(:num)'] = "general/getHinhAnhDetail/$1";
$route['hinh-anh/catalog/(:num)/(:num)'] = "general/getHinhAnhDetail/$1/$2";
$route['hinh-anh/catalog/view/(:any)'] = "general/hinhanhid/$1";
$route['lien-he'] = "general/lienhe";
$route['post-lien-he'] = "general/postlienhe";

$route['tin-tuc/bao-chi'] = "general/getContent/9";
$route['tin-tuc/bao-chi/(:num)'] = "general/getContent/9/$1";
$route['tin-tuc/bao-chi/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc/website'] = "general/getContent/10";
$route['tin-tuc/website/(:num)'] = "general/getContent/10/$1";
$route['tin-tuc/website/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc/the-gioi-showbiz'] = "general/getContent/11";
$route['tin-tuc/the-gioi-showbiz/(:num)'] = "general/getContent/11/$1";
$route['tin-tuc/the-gioi-showbiz/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc/blogs'] = "general/getContent/12";
$route['tin-tuc/blogs/(:num)'] = "general/getContent/12/$1";
$route['tin-tuc/blogs/view/(:any)'] = "general/getContentId/$1";
$route['tin-tuc/fans-club'] = "general/getContent/13";
$route['tin-tuc/fans-club/(:num)'] = "general/getContent/13/$1";
$route['tin-tuc/fans-club/view/(:any)'] = "general/getContentId/$1";


$route['admin'] = "admin";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)/(:num)'] = "$1/admin_$2/$3/$4/$5/$6";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)'] = "$1/admin_$2/$3/$4/$5";
$route['admin/(:any)/(:any)/(:any)/(:any)'] = "$1/admin_$2/$3/$4";
$route['admin/(:any)/(:any)/(:any)'] = "$1/admin_$2/$3";
$route['admin/(:any)/(:any)'] = "$1/admin_$2";
$route['admin/(:any)'] = "$1/admin_index";
/* End of file routes.php */
/* Location: ./application/config/routes.php */